package com.dglg.spring.service;

import com.dglg.spring.model.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

@Service
public interface TrainingClassService {
    List<TrainingClass> getTrainingClass(String studentId);

    List<Teacher> getTeacherByClass(String className);

    List<TrainingClass> getProject(String className, String studentId);

    List<StudentLog> getStudentLog(String studentId, String className);

    List<Student> getTrainingStudent(String studentName);

    List<String> getTrainClass();

    List<String> getGroupByClass(String className);

    List<String> getStudentIdByCP(String className, String groupName);

    List<TrainingStudent> getGroupByIdClass(String studentId, String className);

    List<TrainingGroup> getGroupById(String studentId);

    List<Teacher> getTeacherByPhone(String phone);

    List<Teacher> getTeacher();

    List<Expert> getExpert();

    List<String> getGroup();

    List<TrainingClass> getTrainingClassAll();

    List<StudentLog> getOneByLogDate(String logDate);

    List<TrainingStudent> getStudentByPhone(String phone);

    List<String> getScoreMessage();

    List<TrainingStudent> queryStudentByPhoneAndName(String phone,String name);

    List<TrainingGroup> queryGroupByPhoneAndName(String phone, String name);

    int updateComment(String className, String studentId);

    int updateDivision(TrainingStudent trainingStudent);

    int updateLog(StudentLog studentLog);

    int updateTeacher(String className, String teacherName);

    int updateClass(String className, String teacherName);

    int insertTeacher(Teacher teacher);

    int insertUser(User user);

    int insertClass(TrainingClass trainingClass);

    int insertTrainingStu(String className, String studentId);

    int insertExpert(Expert expert);

    int insertClassByName(String className, String teacherName);

    int deleteTrainingStu(String className, String studentId);

    int deleteStudent(String studentId);

    int deleteClass(String className);

    int deleteExpert(String phone);

    int deleteTeacher(String className);

    int deleteTeacher2(String className);

    int deleteTrainStu(String className, String studentId);
}
